/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package de.hpi.generator.generator;

/**
 *
 * @author Michael
 */
public class StartArgs {

    private String aGenerationMode = null;

    public String getGenerationMode() {
        return aGenerationMode;
    }
    private String aConfigPath = null;

    public String getConfigPath() {
        return aConfigPath;
    }
    private String aOutputPath = null;

    public String getOutputPath() {
        return aOutputPath;
    }

    public StartArgs(String[] args) throws Exception {
        validate(args);
        int paramIndex = 0;
        aGenerationMode = args[paramIndex++];
        aConfigPath = args[paramIndex++];
        aOutputPath = args[paramIndex++];
    }

    private void validate(String[] args) throws Exception {
        if (args.length != 3) {
            throw new WrongParamsException();
        }
    }
    
    public boolean isIntegratedMode(){
        return (aGenerationMode.compareTo("integrated_config") == 0);
    }
}
